<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<h:head>
<script type="text/javascript">
		PrimeFaces.locales['pt_BR'] = {
			closeText : 'Fechar',
			prevText : 'Anterior',
			nextText : 'Próximo',
			currentText : 'Começo',
			monthNames : [ 'Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio',
					'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro',
					'Novembro', 'Dezembro' ],
			monthNamesShort : [ 'Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun',
					'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez' ],
			dayNames : [ 'Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta',
					'Sexta', 'Sábado' ],
			dayNamesShort : [ 'Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb' ],
			dayNamesMin : [ 'D', 'S', 'T', 'Q', 'Q', 'S', 'S' ],
			weekHeader : 'Semana',
			firstDay : 1,
			isRTL : false,
			showMonthAfterYear : false,
			yearSuffix : '',
			timeOnlyTitle : 'Só Horas',
			timeText : 'Tempo',
			hourText : 'Hora',
			minuteText : 'Minuto',
			secondText : 'Segundo',
			currentText : 'Data Atual',
			ampm : false,
			month : 'Mês',
			week : 'Semana',
			day : 'Dia',
			allDayText : 'Todo Dia'
		};
	</script>
	<f:view>
		<ui:include src="../topo.xhtml"></ui:include>
	</f:view>
</h:head>
<h:body>

	<h:outputStylesheet library="css" name="estilo.css" />

	<div class="container">
		<div class="navegacao">&nbsp;&nbsp;&nbsp; Inicio > Cadastro > Usuario</div>

		<div class="conteudo">

			<div class="formCad">
				<h:form id="form">
				<p:growl></p:growl>
				    <h:outputText value="Selecione o professor"></h:outputText>
				    <p>&nbsp;</p>
					<h:selectOneMenu value="#{relatorioReservaAMB.matriculaUsuario}">
					<f:selectItem itemLabel=" .:Selecione:. "></f:selectItem>
					<f:selectItems value="#{relatorioReservaAMB.listaUsuarios}" var="usuario" itemLabel="#{usuario.nome}" itemValue="#{usuario.matricula}"></f:selectItems>
					</h:selectOneMenu>
					<p>&nbsp;</p>
					<h:outputText value="DATA INICIAL"></h:outputText>
				    <p>&nbsp;</p>
					<p:calendar value="#{relatorioReservaAMB.dataInicio}"
						pattern="dd/MM/yyyy" minHour="19" maxHour="21"
						stepSecond="60" stepMinute="0" stepHour="1"
						mindate="#{gerenciador_reserva_equipamento.minDate}"
						maxdate="#{gerenciador_reserva_equipamento.maxData}"
						styleClass="dateTimeField" effect="explode" effectDuration="slow" />
						 <p>&nbsp;</p>	
						<h:outputText value="DATA FINAL"></h:outputText>
				    <p>&nbsp;</p>
					<p:calendar value="#{relatorioReservaAMB.dataFim}"
						pattern="dd/MM/yyyy" minHour="19" maxHour="21"
						stepSecond="60" stepMinute="0" stepHour="1"
						mindate="#{gerenciador_reserva_equipamento.minDate}"
						maxdate="#{gerenciador_reserva_equipamento.maxData}"
						styleClass="dateTimeField" effect="explode" effectDuration="slow" />	
					 <p>&nbsp;</p>	
					<p:commandButton value="Cadastrar"
						action="#{relatorioReservaAMB.gerarRelatorioA}" ajax="false"></p:commandButton>
						&nbsp;&nbsp;&nbsp;&nbsp;
					<p:commandButton value="Cancelar"
						action="#" update="form"></p:commandButton>
				</h:form>
			</div>
		</div>
	</div>

	<div class="rodape">
		<ui:include src="/rodape.xhtml"></ui:include>
	</div>

</h:body>
</html>